package net.zjitc;

/**
 * @Author admin
 * @Date 2019/3/12 14:54
 */
public class Peo {


private String pname;
int age;
    Peo(){

    }

void setName(String pname){
    this.pname=pname;
}
String getPname(){
    return pname;
}
    void   shooping(Sup cms,String sName){
        Sp sp=cms.sell(sName);
        if (sp==null){
            System.out.println(pname+"白跑一趟");
        }else {
            System.out.println(pname+"去"+cms.getCsm()+"超市买"+sName);
        }
    }
}
